﻿using System;

namespace CommonUtils
{
    /// <summary>
    /// 字符串提供器
    /// </summary>
    public class StringIdentifier
    {
        public static string Debug
        {
            get
            {
#if DEBUG
                return DateTime.Now.ToString("yyyyMMddHHmmssfff");
#endif
                return "no";
            }
        }

        public const string UserFolder = "%USERPROFILE%";

        public const string SystemRoot = "%SystemRoot%";

        public const string Blank = " ";

        public const string BlankField = "Blank";

        public const string Line = "=====================================================================";

        public const string EndField = " ~";

        /// <summary>
        /// Hello World!
        /// </summary>
        public const string HelloWorld = "Hello World!";

        /// <summary>
        /// 中国制造，惠及全球
        /// </summary>
        public const string ChinaInnovation = "中国智造，惠及全球！！！";

        /// <summary>
        /// success常量
        /// </summary>
        public const string Success = "success";

        /// <summary>
        /// error
        /// </summary>
        public const string Error = "error";

        /// <summary>
        /// 验证码
        /// </summary>
        public const string VerificationCode = "IdentifyCode";

        /// <summary>
        /// AAAAAA
        /// </summary>
        public const string SixA = "AAAAAA";

        /// <summary>
        /// A\r\nA\r\nA\r\nA\r\nA\r\nA
        /// </summary>
        public const string SixALines = "A\r\nA\r\nA\r\nA\r\nA\r\nA";

        /// <summary>
        /// 换行标识
        /// </summary>
        public static string NewLine => Environment.NewLine;

        public static string SystemLineSeparator => Environment.NewLine;

        public const string DividinLine = "----------------------";

        /// <summary>
        /// 文本行分隔符
        /// </summary>
        public static string[] LineSeparators = new string[] { "\r\n", "\n" };

        /// <summary>
        /// 空格拆分符
        /// </summary>
        public static char[] SpaceSeparators = new char[] { ' ', '\t' };

        /// <summary>
        /// 数字字符枚举
        /// </summary>
        public static char[] DigitChars = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9' };

        /// <summary>
        /// 字符标点
        /// </summary>
        public static char[] AscPunctuations = { ',', '.', ';', ':', '?', '!', '(', ')', '\'', '"', ' ' };

        /// <summary>
        /// 字符串标点
        /// </summary>
        public static string[] UtfPunctuations = { "，", "。", "；", "、", "：", "？", "！", "‘", "’", "“", "”", "（", "）", "《", "》" };
    }
}
